package cn.com.beans;

import lombok.Data;

import java.util.List;

@Data
public class PRole {
    /**
     * 角色标识符
     */
    private Integer id;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色编码
     */
    private String code;
    /**
     * 角色拥有的资源信息
     */
    private List<PResource> resources;

    public List<PResource> getResources() {
        return resources;
    }

    public void setResources(List<PResource> resources) {
        this.resources = resources;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}

